import Layout from '@/views/Layout.vue'
import Index from '@/views/seconds/Index.vue'
import News from '@/views/seconds/News.vue'
import Search from '@/views/seconds/Search.vue'
import My from '@/views/seconds/My.vue'

import Detail from '@/views/Detail.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect:'/index',
    children: [
      {
        path: 'index',
        component:Index
      },
      {
        path: 'news',
        component:News
      },
      {
        path: 'search',
        component:Search
      },
      {
        path: 'my',
        component:My
      },
    ]
  },
  {
    path: '/detail',
    component:Detail
  }
]

export default routes